import request from '@/utils/request'

export function getBlogSortList() {
    return request({
        url: process.env.VUE_APP_ADMIN_API + '/front/listAllBlogType',
        method: 'get'
    })
}

export function addBlogSort(params) {
    return request({
        url: process.env.VUE_APP_ADMIN_API + '/admin/blogType/add',
        method: 'post',
        data: params
    })
}

export function editBlogSort(params) {
    return request({
        url: process.env.VUE_APP_ADMIN_API + '/admin/blogType/update',
        method: 'post',
        data: params
    })
}

export function deleteBatchBlogSort(params) {
    return request({
        url: process.env.VUE_APP_ADMIN_API + '/admin/blogType/delete',
        method: 'post',
        data: params
    })
}
